<template>
    <div>

    </div>
</template>
<script>
export default {
  data(){
    return {
      
    }
  },
  methods:{
    initProp(){
      try {
        let uid = localStorage.getItem("uid");
        let userInfobd = JSON.parse(localStorage.getItem("userInfo"));
        if(userInfobd.length==0){
          let userInfo = this.$store.getters.getUserInfo;
          if(userInfo.length==0){
            this.$router.push("/user/login");
            return;
          }
          this.$router.push({path:"/user/userInfo",query:{userInfo,uid}});
          return;
        }
        this.$router.push({path:"/user/userInfo",query:{userInfo:userInfobd,uid}});
      } catch (error) {
        this.$router.push("/user/login");
      }
    }
  },
  created(){
    this.initProp();
  }
}
</script>
<style scoped>
.form{
  width: 300px;
  height: 200px;
  padding: 50px 30px;
}
.form-select{
  width: 80%;
  height: 50px;
  background: linear-gradient(to right, #00F5A0, #00D9F5);
}
</style>